<?php echo $head; ?>
</head>
<body>
	<div class="wrapper_main">
		<?php echo $header; ?>
		<div class="wrapper_content">
			<?php echo $left; ?>
			<div class="primary">
				<div class="navigator">
					<a href="<?php echo base; ?>"><?php echo $lang["navi"]["home"]; ?></a>
					<a href=""><?php echo $curr_menu; ?></a>						
				</div>
				<div class="clear"></div>
				<div class="content">
                	<?php if(!empty($products)) : ?>
					<div class="san_pham ">
						<?php echo $products; ?>
                        <div class="clear"></div>
                        <div class="page">
							<?php if($page > 1 ) : ?>
                                <a class="prev np" href="<?php echo $curr_link . "?page=" . ($page - 1); ?>"><img src="<?php echo base; ?>images/prev.jpg" width="23" height="23" /></a>
                            <?php endif; ?>
                            <?php for($i = 1; $i <= $total_page; $i++) :
                                $href = "href=\"" . $curr_link . "?page=" . $i . "\"";
                                if($i == $page)
                                    $href = "class=\"active\" href=\"" . $curr_link . "?page=" . $i . "\"";									
                            ?>                            	
                                <a <?php echo $href; ?>><?php echo $i; ?></a>
                            <?php endfor; ?>
                            <?php if($page < $total_page ) : ?>
                                <a class="next np" href="<?php echo $curr_link . "?page=" . ($page + 1); ?>"><img src="<?php echo base; ?>images/next.jpg" width="23" height="23" /></a>		
                            <?php endif; ?>
                        </div>
                        <div class="clear"></div>
					</div>
					<?php endif; ?>					
				</div><!--end .content-->
                
			</div><!--end .primary-->	
			<div class="clear"></div>	
		</div><!--end .wrapper_content-->
		<?php echo $footer; ?>
	</div><!--end .wrapper_main-->
</body>
</html>
